/**
 * @author : dormi330
 * @since : 2021/1/20/0020
 */
public class Main01 {
    private static int count;

    public static void main(String[] args) {

        Thread loop = new Thread(() -> {
            while (true) {
                System.out.println(Thread.currentThread().getName() + ":" + count++);
            }
        });
        loop.setName("loop-thread");

        loop.start();
        // how to stop loop Thread?
    }
}
